package main

import (
	"encoding/json"
	"fmt"
)

func main() {
	m := make(map[string]interface{}, 4)
	m["company"] = "tianxiadiyi"
	m["subjects"] = []string{"Go", "Java", "C++", "Python"}
	m["price"] = 56.98

	marshal, err := json.MarshalIndent(m, "", "	")
	if err != nil {
		fmt.Println("err = ", err)
		return
	}
	fmt.Println(string(marshal))

}
